import { createRouter, createWebHistory } from 'vue-router'
import homeView from '@/views/home/home.vue'
import indexView from '@/views/home/index.vue'
import dyyView from '@/views/home/dyy.vue'
import zxView from '@/views/home/zx.vue'
import myView from '@/views/home/my.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    { path: '/', redirect: '/home/index' },
    { path: '/home', name: 'home', component: homeView,children:[
    { path: 'index', name: 'index', component: indexView, },
    { path: 'dyy', name: 'dyy', component: dyyView, },
    { path: 'zx', name: 'zx', component: zxView, },
    { path: 'my', name: 'my', component: myView, },

    ] },

  ],
})

export default router
